Optimal. Leaf size=65 \[ -\frac{a c \tan ^3(e+f x) \cos ^2(e+f x)^{\frac{p+3}{2}} (g \sec (e+f x))^p \text{Hypergeometric2F1}\left (\frac{3}{2},\frac{p+3}{2},\frac{5}{2},\sin ^2(e+f x)\right )}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.089211, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062, Rules used = {3962, 2617} \[ -\frac{a c \tan ^3(e+f x) \cos ^2(e+f x)^{\frac{p+3}{2}} (g \sec (e+f x))^p \, _2F_1\left (\frac{3}{2},\frac{p+3}{2};\frac{5}{2};\sin ^2(e+f x)\right )}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3962
Rule 2617
Rubi steps
\begin{align*} \int (g \sec (e+f x))^p (a+a \sec (e+f x)) (c-c \sec (e+f x)) \, dx &=-\left ((a c) \int (g \sec (e+f x))^p \tan ^2(e+f x) \, dx\right )\\ &=-\frac{a c \cos ^2(e+f x)^{\frac{3+p}{2}} \, _2F_1\left (\frac{3}{2},\frac{3+p}{2};\frac{5}{2};\sin ^2(e+f x)\right ) (g \sec (e+f x))^p \tan ^3(e+f x)}{3 f}\\ \end{align*}
Mathematica [A] time = 0.340417, size = 72, normalized size = 1.11 \[ -\frac{a c \tan (e+f x) (g \sec (e+f x))^p \left (\frac{\text{Hypergeometric2F1}\left (\frac{1}{2},\frac{p}{2},\frac{p+2}{2},\sec ^2(e+f x)\right )}{\sqrt{-\tan ^2(e+f x)}}+p\right )}{f p (p+1)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.62, size = 0, normalized size = 0. \begin{align*} \int \left ( g\sec \left ( fx+e \right ) \right ) ^{p} \left ( a+a\sec \left ( fx+e \right ) \right ) \left ( c-c\sec \left ( fx+e \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int{\left (a \sec \left (f x + e\right ) + a\right )}{\left (c \sec \left (f x + e\right ) - c\right )} \left (g \sec \left (f x + e\right )\right )^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-{\left (a c \sec \left (f x + e\right )^{2} - a c\right )} \left (g \sec \left (f x + e\right )\right )^{p}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - a c \left (\int - \left (g \sec{\left (e + f x \right )}\right )^{p}\, dx + \int \left (g \sec{\left (e + f x \right )}\right )^{p} \sec ^{2}{\left (e + f x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -{\left (a \sec \left (f x + e\right ) + a\right )}{\left (c \sec \left (f x + e\right ) - c\right )} \left (g \sec \left (f x + e\right )\right )^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]